package com.example.yls.demoa;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.TextView;

/**
 * Created by yls on 2018/12/17.
 */

public class reciver  extends BroadcastReceiver{
IOnTimeChangeListener listener;
    public reciver(IOnTimeChangeListener listener){
this.listener=listener;
    }
    @Override
    public void onReceive(Context context, Intent intent) {

        String time=intent.getStringExtra("time");
    listener.show(time);

    }
}
